home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1996, 1997 Meta Four Software. All rights reserved.
- //
- // Setup dialog sample code
- //
- //! rev="$Id: setupdlg.h,v 1.4 1997/05/27 00:06:19 jcw Rel $"
-
- #include "scandisk.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CSetupDialog dialog
-
- class CSetupDialog : public CDialog, public cStatusHandler
- {
- // Construction
- public:
- CSetupDialog(CWnd* pParent = NULL); // standard constructor
-
- void Execute(BOOL now);
-
- // Dialog Data
- //{{AFX_DATA(CSetupDialog)
- enum { IDD = IDD_SETUP_DIALOG };
- CButton m_okBtn;
- CButton m_browseBtn;
- CButton m_deleteBtn;
- CButton m_addBtn;
- CButton m_updateBtn;
- CStatic m_status;
- CEdit m_root;
- CString m_name;
- //}}AFX_DATA
-
- private:
- CString m_origRoot;
- BOOL m_exists;
- int m_timer;
- BOOL m_allowScan;
- CMyEdit m_nameEditCtrl;
- bool m_scanNow;
-
- // Implementation
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnCancel();
-
- virtual bool UpdateStatus(const char* text);
-
- void NameChange(BOOL delay);
- void ScanDirectories();
- void InspectCatalog();
- void AdjustButtons(BOOL inScan_ =FALSE);
-
- // Generated message map functions
- //{{AFX_MSG(CSetupDialog)
- afx_msg void OnAddBtn();
- virtual BOOL OnInitDialog();
- afx_msg void OnUpdateBtn();
- afx_msg void OnDelBtn();
- afx_msg void OnBrowseBtn();
- afx_msg void OnChangeName();
- afx_msg void OnChangeRoot();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnKillfocusRoot();
- afx_msg void OnClose();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- /////////////////////////////////////////////////////////////////////////////
-